<?php
class NewsViewModel extends ViewModel {
	public $viewFields = array(
		'News'=>array('id', 'cate_id', 'name', 'pic', 'add_time', 'update_time', 'row_sort', 'sub_content', 'views', 'status'),
		'NewsContent'=>array('title', 'keywords', 'description', 'content', '_on'=>'News.id=NewsContent.news_id'),
	);
}